package com.xoa.controller.party;

import com.xoa.service.party.FormUpLoadService;
import com.xoa.util.ToJson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * Created by 程叶同 on 2017-12-11.
 * 文件导入
 */
@Controller
@RequestMapping("formupload")
public class FormUpLoadControlelr {
    @Autowired
    private FormUpLoadService formUpLoadService;

    @ResponseBody
    @RequestMapping("/inputfile")
    public ToJson<Object> inputFixAsserts(HttpServletRequest request, HttpServletResponse response, MultipartFile file, HttpSession session){
        return formUpLoadService.inputFile(request,response,file,session);
    }
    @RequestMapping("/go")
    public String go(){
        return "app/vehicle/index";
    }



}
